package com.longshanks.retrorally;

import android.content.Context;

/**
 * An extension of GameUnit, PlayerUnit represents the player-controlled
 * unit in the game.
 * 
 * @author Dan Ruscoe (ruscoe.org)
 * @version 1.0
 */
public class PlayerUnit extends GameUnit
{
	public static final String TAG = PlayerUnit.class.getSimpleName();
	
	public static final int SPEED = 3;
	
	Context mContext;
	
	private int mUnmodifiedX = 0;
	private int mUnmodifiedY = 0;
	private boolean enteredFinishline;
	private int lapsCompleted;
	private float totalTime;
	private float bestLap;
	
	private RaceCar raceCar;
	
	public PlayerUnit(Context context, int drawable)
	{
		super(context, drawable);
		this.mContext = context;
		enteredFinishline = true;
		raceCar = new RaceCar(0, 180f, 3, 24, 1, 1, 3);
	}

//	public int getUnmodifiedX()
//	{
//		return this.mUnmodifiedX;
//	}
//
//	public void setUnmodifiedX(int unmodifiedX)
//	{
//		this.mUnmodifiedX = unmodifiedX;
//	}
//
//	public int getUnmodifiedY()
//	{
//		return this.mUnmodifiedY;
//	}
//
//	public void setUnmodifiedY(int unmodifiedY)
//	{
//		this.mUnmodifiedY = unmodifiedY;
//	}

	public boolean isEnteredFinishline() {		
		return enteredFinishline;
	}

	public void setEnteredFinishline(boolean enteredFinishline) {
		this.enteredFinishline = enteredFinishline;
	}

	public RaceCar getRaceCar() {
		return raceCar;
	}

	public void setRaceCar(RaceCar raceCar) {
		this.raceCar = raceCar;
	}

	public int getLapsCompleted() {
		return lapsCompleted;
	}

	public void setLapsCompleted(int lapsCompleted) {
		this.lapsCompleted = lapsCompleted;
	}

	public float getTotalTime() {
		return totalTime;
	}

	public void setTotalTime(float totalTime) {
		this.totalTime = totalTime;
	}

	public float getBestLap() {
		return bestLap;
	}

	public void setBestLap(float bestLap) {
		this.bestLap = bestLap;
	}
}
